package com.nulldev.util.web.YouTubeExtractor.testing.tests;

import java.util.List;

import com.nulldev.util.internal.testing.Test;
import com.nulldev.util.web.YouTubeExtractor.trending.YouTubeTrending;
import com.nulldev.util.web.YouTubeExtractor.trending.YouTubeTrending.TrendingEntry;

public class TrendingTests {

	public static class YTETrendingTests extends Test<List<TrendingEntry>> {

		@Override
		public void test() throws Throwable {
			final List<TrendingEntry> t = YouTubeTrending.getTrending();
			if (t != null && !t.isEmpty())
				super.finish(t);
			else
				super.fail(t);
		}

	}
}
